﻿using System;
using System.Data.Entity;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;

namespace KurupiraApp.Models
{
    public class KurupiraContext : DbContext
    {
        public DbSet<Usuario> Usuarios { get; set; }
        public DbSet<Moderador> Moderadores { get; set; }
        public DbSet<Perfil> Perfils { get; set; }
        public DbSet<Grupo> Grupos { get; set; }
        public DbSet<Mensagem> Mensagens { get; set; }

        protected override void OnModelCreating(DbModelBuilder dbModelBuilder)
        {            
            dbModelBuilder.Conventions.Remove<PluralizingTableNameConvention>();            
        }
    }
}